package cn.panda.edu.service;

import cn.panda.edu.model.Notice;
import com.github.pagehelper.PageInfo;

import java.util.Date;

public interface NoticeService {
	/**
	 * 
	* @Title: selectByPrimaryKey 
	* @Description: TODO(根据主键查找公告信息) 
	* @param @param key
	* @param @return  
	* @return Notice
	 */
	 Notice selectByPrimaryKey(Integer noticeId);
	 /**
		 * 
		* @Title: selectNoticeByPage1 
		* @Description: (这里用一句话描述这个方法的作用) lsy
		* @param @param pageindex
		* @param @param pageSize
		* @param @return  
		* @return PageInfo<Notice>
		 */
		PageInfo<Notice> selectNoticeByPage(Integer pageIndex, Integer pageSize); 
		
	 /**
	  * 
	 * @Title: insert 
	 * @Description: TODO(添加公告信息) 
	 * @param @param record
	 * @param @return  
	 * @return int
	  */
	 int insertSelective(Notice record);
	 /**
	  * 
	 * @Title: deleteByPrimaryKey 
	 * @Description: TODO(根据主键删除) 
	 * @param @param noticeId
	 * @param @return  
	 * @return int
	  */
	 int deleteByPrimaryKey(Integer noticeId);
	 /**
	  * 
	 * @Title: updateByPrimaryKeySelective 
	 * @Description: TODO(修改公告) 
	 * @param @param record
	 * @param @return  
	 * @return int
	  */
	 int updateByPrimaryKeySelective(Notice record);
	 /**
	  * 
	 * @Title: selectLikeByPrimaryKey 
	 * @Description: TODO(模糊查询带分页) 
	 * @param @param noticeName
	 * @param @param noticeDate
	 * @param @param pageIndex
	 * @param @param pageSize
	 * @param @return  
	 * @return PageInfo<Notice>
	  */
	 PageInfo<Notice> selectLikeByPrimaryKey(String noticeName, Date noticeDate, Integer pageIndex);
	 /**
		 *
		* @Title: getAllNotice
		* @Description: 显示所有公告
		*@return
		* List<Notice>
		 */
		PageInfo<Notice> getAllNotice(Integer pageIndex, Integer pageSize);
}
